import sys, pygame
from pygame.locals import *

class Trivia:
    def __init__(self, filename):
       pygame.init()
       self.screen = pygame.display.set_mode((600, 500))
       pygame.display.set_caption("The Trivia Game")
       self.font1 = pygame.font.Font(None, 40)
       self.font2 = pygame.font.Font(None, 24)
       white = (255, 255, 255)
       cyan = (0, 255, 255)
       yellow = (255, 255, 0)
       purple = (255, 0, 255)
       green = (0, 255, 0)
       red = (255, 0, 0)

       self.data = []
       self.current = 0
       self.total = 0
       self.correct = 0
       self.score = 0
       self.scored = False
       self.failed = False
       self.wronganswer = 0
       self.color = [white, white, white, white]

       f = open(filename, "r")
       trivia_data = f.readlines()
       f.close()
       for text_line in trivia_data:
          self.data.append(text_line.strip())
          self.total += 1























    

